projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e7cba0
)
rpi: set ethaddr as well
author
Lubomir Rintel
<
[email protected]
>
Wed, 3 Feb 2016 15:08:09 +0000
(16:08 +0100)
committer
Tom Rini
<
[email protected]
>
Mon, 8 Feb 2016 15:10:49 +0000
(10:10 -0500)
Let's set "ethaddr" when we get the ethernet address too, so that
fdt_fixup_ethernet() sets the address in the device tree and the Linux
driver can pick it up.
Signed-off-by: Lubomir Rintel <
[email protected]
>
Tested-by: Stephen Warren <
[email protected]
>
board/raspberrypi/rpi/rpi.c
patch
|
blob
|
history
diff --git
a/board/raspberrypi/rpi/rpi.c
b/board/raspberrypi/rpi/rpi.c
index 89d78cc6c407a36189c9b24f4fe7c844917f848f..7f4fe64385e4d31419713de109947151aa26759e 100644
(file)
--- a/
board/raspberrypi/rpi/rpi.c
+++ b/
board/raspberrypi/rpi/rpi.c
@@
-259,6
+259,9
@@
static void set_usbethaddr(void)
eth_setenv_enetaddr("usbethaddr", msg->get_mac_address.body.resp.mac);
+ if (!getenv("ethaddr"))
+ setenv("ethaddr", getenv("usbethaddr"));
+
return;
}